package com.train.daily.api.fallback;

import com.train.common.enums.impl.SysExceptionEnums;
import com.train.common.resp.CommonResp;
import com.train.daily.api.DailyTrainSeatApi;
import com.train.daily.dto.seat.DailyTrainSeatEditChoiceSeatDTO;
import com.train.daily.dto.seat.DailyTrainSeatQueryListDTO;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class DailyTrainSeatApiFallback implements DailyTrainSeatApi {
    
    @Override
    public CommonResp queryTrainSeatList(DailyTrainSeatQueryListDTO dto) {
        return CommonResp.error(SysExceptionEnums.EXP_DEGRADE);
    }

    @Override
    public CommonResp batchEditDailyTrainSeat(List<DailyTrainSeatEditChoiceSeatDTO> dto) {
        return CommonResp.error(SysExceptionEnums.EXP_DEGRADE);
    }
}
